

1. Contents and session information

The complete script which replicates all materials from the paper is contained in 
IFoT_rep/code and is called IFoT_replication_script.R. You must set an appropriate
path to the folder on your computer which holds the replication folder, IFoT_rep.
This path should be set to the curcomp object located at the top of IFoT_replication.R.

The replication file EtE_repcode contains four main folders:

code: this file contains the scripts used to produce the tables and 
figures presented in the paper. IFoT_replication .Rcompletely recreates all
materials in the main text and appendix. IFoT_repcode_main.R recreates the main models
and figures in the main text, except table 4 and figures 1,2. IFoT_repcode_alltrade.R
replicates table 4 and figures 1,2. IFoT_repcode_addmodels.R replicates all of the models
in the appendix but A1. IFoT_Rfunctions defines some functions used throughout the replications
and is sourced in IFoT_repcode_main.R.

data: this file contains all of the datasets used to construct the final
dataset for analysis. IFOT_fta_data.csv is the positiontaking, lobbying, and
trade data across the US trade agreements; IFOT_allpos_data and IFOT_alltrd_data
are these items for all US trade policy issues. 

Packages: the session info for the R version and packages used is:

R version 3.0.3 (2014-03-06)
Platform: x86_64-w64-mingw32/x64 (64-bit)

attached base packages:
[1] grid      splines   stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] pscl_1.04.4          vcd_1.3-1            gam_1.09             coda_0.16-1          lattice_0.20-27     
 [6] mvtnorm_0.9-9996     formula.tools_1.3.1  operator.tools_1.3.0 Zelig_4.2-1          sandwich_2.2-10     
[11] zoo_1.7-10           MASS_7.3-29          boot_1.3-9           xtable_1.7-1        



2. General replication directions, and Table and Figure notes.
-to replicate all of the data cleaning and analysis, run the script
IFoT_replication.R. You must set a working directory with a path
leading to the folder containing IFoT_rep. Note that the complete replication
takes around 5 minutes. All tables and figures are written to paper/tables and paper/figs.

